<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditFeed">
  <model>
    <instance>
      <tblActions>
        <nActionKey>0</nActionKey>
        <nWebsite/>
        <cType>Feed</cType>
        <cSubPath>ewcommon/services.asmx</cSubPath>
        <cActionXML>
          <Feed exemelnamespace="http://www.eonic.co.uk/ewcommon/Services">
            <cURL>http://</cURL>
            <cXSLPath/>
            <nPageId>1</nPageId>
            <nSaveMode>0</nSaveMode>
          </Feed>
        </cActionXML>
        <dPublishDate/>
        <dExpireDate/>
        <dInsertDate/>
        <nInsertDirId/>
        <dUpdateDate/>
        <nUpdateDirId/>
        <nFrequency>30</nFrequency>
        <dLastComplete/>
        <dDueNext/>
      </tblActions>
    </instance>
    <submission id="EditFeed" action="" method="post" event="return form_check(this)"/>
    <bind id="nActionKey" nodeset="tblActions/nActionKey" required="false()" type="number"/>
    <bind id="nWebsite" nodeset="tblActions/nWebsite" required="false()" type="number"/>
    <bind id="nPageId" nodeset="tblActions/cActionXML/Feed/nPageId" required="true()" type="number"/>
    <bind id="cURL" nodeset="tblActions/cActionXML/Feed/cURL" required="true()" type="string"/>
    <bind id="cXSLPath" nodeset="tblActions/cActionXML/Feed/cXSLPath" required="true()" type="string"/>
    <bind id="nSaveMode" nodeset="tblActions/cActionXML/Feed/nSaveMode" required="true()" type="number"/>
    <bind id="dPublishDate" nodeset="tblActions/dPublishDate" required="false()" type="date"/>
    <bind id="dExpireDate" nodeset="tblActions/dExpireDate" required="false()" type="date"/>
    <bind id="dLastComplete" nodeset="tblActions/dLastComplete" required="false()" type="date"/>
    <bind id="dDueNext" nodeset="tblActions/dDueNext" required="false()" type="date"/>
    <bind id="nFrequency" nodeset="tblActions/nFrequency" required="true()" type="number"/>
  </model>
  <group ref="EditContent" class="2col">
    <label>Edit Feed</label>
    <group>
      <group>
        <input bind="nActionKey" class="hidden">
          <label>nActionKey</label>
          <value/>
        </input>
        <input bind="nWebsite" class="hidden">
          <label>nWebsite</label>
          <value/>
        </input>

        <input bind="dPublishDate" class="calendar short">
          <label>Publish Date</label>
          <value/>
        </input>
        <input bind="dExpireDate" class="calendar short">
          <label>Expire Date</label>
          <value/>
        </input>
        <input bind="dLastComplete" class="short readonly">
          <label>Last Done</label>
          <value/>
        </input>
        <input bind="dDueNext" class="short readonly">
          <label>Next Due</label>
          <value/>
        </input>
      </group>

    </group>
    <group>
      <select1 bind="nPageId" appearance="minimal" class="required short">
        <label>Page</label>
        <choices/>
      </select1>
      <input bind="cURL" class="required short">
        <label>URL</label>
        <value/>
      </input>
      <select1 bind="cXSLPath" appearance="minimal" class="required short">
        <label>XSL File</label>
        <choices/>
      </select1>
      <select1 bind="nSaveMode" appearance="full" class="required vshort">
        <label>Save Mode</label>
        <choices/>
        <item>
          <label>Remove Old</label>
          <value>0</value>
        </item>
        <item>
          <label>Archive Old</label>
          <value>1</value>
        </item>
        <item>
          <label>Manual Remove</label>
          <value>2</value>
        </item>
      </select1><group>
        <label>Frequency</label>
        <input bind="nFrequency" class="required short">
          <label>Interval (Minutes)</label>
          <value/>
        </input>
      </group>
      <submit submission="" ref="ewSubmit" class="principle">
        <label>Save Feed</label>
      </submit>
    </group>
  </group>
</Content>
